import  request  from './index'

export async function getWeather(address) {
  //console.log(address)
  const res = await request.get(`/weather/weatherInfo?city=${address}`)
  .then(res => {
    return res
  })
 // console.log(res.data)
  return res.data
}